package com.mo.design.pattern.creational.prototype;



public class DatasourceConfig {
    private String driver;
    private String userName;
    private String password;
    private String url;

    public DatasourceConfig(String driver, String userName, String password, String url) {
        this.driver = driver;
        this.userName = userName;
        this.password = password;
        this.url = url;
    }

    public static void main(String[] args) {
        DatasourceConfig config1 = new DatasourceConfig("mysql", "root", "root", "jdbc:mysql:...");
        DatasourceConfig config2 = new DatasourceConfig("oracle", "oracle", "123456", "");
    }

}

